import axios from "@/utils/api.request";

// 登录
export const login = info => {
  return axios.request({
    url: "user/login",
    data: info,
    method: "post"
  });
};
// 用户添加
export const userAdd = info => {
  return axios.request({
    url: "user/add",
    data: info,
    method: "post"
  });
};
// 用户修改
export const userUpdate = info => {
  return axios.request({
    url: "user/update",
    data: info,
    method: "post"
  });
};
// 用户修改
export const userUpdateState = info => {
  return axios.request({
    url: "user/updateState",
    data: info,
    method: "post"
  });
};
// 用户删除
export const userDel = info => {
  return axios.request({
    url: "user/del",
    data: info,
    method: "post"
  });
};
// 用户查询
export const userPage = info => {
  return axios.request({
    url: "user/page",
    data: info,
    method: "post"
  });
};
// 用户修改密码
export const userUpdateps = info => {
  return axios.request({
    url: "user/updateps",
    data: info,
    method: "post"
  });
};